<?php

$qwollowname = "Post Rate";
$qwollowdescription = "This tests for followers who post at a significantly high rate for the age of their account.";
$qwollowauthor = "Chirplace";
$qwollowauthorurl = "http://www.chirplace.com";
$qwollowavatar = "http://www.boostpost.com/chirplace.com/images/cplogo.gif";

//the return value indicates the degree of success.

function qwollowfy($Follower)
{


	//get the number of posts
	$numposts = $Follower->statuses_count;
	if ($numposts<1)
		$numposts = 1;
	
	//calculate the age of the account
	$from_time=strtotime($Follower->created_at);
	$to_time=strtotime(date("D M j G:i:s T Y"));

	$minutediff = round(abs($to_time - $from_time) / 60,2);

	$postrate = round(($minutediff/$numposts), 0);

	if ($postrate>100)
		$postrate = 100;

	return $postrate;
	
}

?> 
